/**
 * 
 *	翰迪数据
 * Copyright (c) 2013-2019 Handy-data,Inc.All Rights Reserved.
 */
package com.handydata.antifraud.rule;

import java.util.HashMap;
import java.util.Map;

import lombok.extern.slf4j.Slf4j;

import org.springframework.stereotype.Component;

import com.bstek.urule.model.ExposeAction;

/**
 * 
 * @author guolong
 * @version $Id: RuleExecLog.java, v 0.1 2019年9月5日 下午2:54:56 apple Exp $
 */
@Slf4j
@Component
public class RuleExecLog {


	public static Map<String, String> ruleConfigMap = new HashMap<String, String>();

    @ExposeAction("记录1个参数值")
    public void attach(String ruleId, String inputAttrNames, String v1) {
        attach(ruleId, inputAttrNames, v1, "");
    }
    @ExposeAction("记录2个参数值")
    public void attach(String ruleId, String inputAttrNames, String v1, String v2) {
        attach(ruleId, inputAttrNames, v1, v2,"");
    }
    @ExposeAction("记录3个参数值")
    public void attach(String ruleId, String inputAttrNames, String v1, String v2, String v3) {
        attach(ruleId, inputAttrNames, v1, v2, v3, "");
    }
    @ExposeAction("记录4个参数值")
    public void attach(String ruleId, String inputAttrNames, String v1, String v2, String v3, String v4) {
        attach(ruleId, inputAttrNames, v1, v2, v3, v4, "");
    }
    @ExposeAction("记录5个参数值")
    public void attach(String ruleId, String inputAttrNames, String v1, String v2, String v3, String v4, String v5) {
        attach(ruleId, inputAttrNames, v1, v2, v3, v4, v5, "");
    }
    @ExposeAction("记录6个参数值")
    public void attach(String ruleId, String inputAttrNames, String v1, String v2, String v3, String v4, String v5, String v6) {

        //String input=String.format("\"parNames\":{},\"vals\":[{},{},{},{},{},{}]",inputAttrNames, v1,  v2,  v3,  v4,  v5,  v6);

        log.info("记录参数，执行规则:{} 参数{}",ruleId,inputAttrNames);

        ruleConfigMap.put(ruleId,inputAttrNames);


    }

}
